import { post } from '@/utils/request'

// 无限群活码分组
// 查询无限群活码分组列表
export const getGroupQrcodeClassList = p => post(`/service-cop/b/groupQrcode/v1/qrcodeClassList`, p)
// 查询无限群活码分组列表树
export const getGroupQrcodeClassTreeList = p => post(`/service-cop/b/groupQrcode/v1/qrcodeClassTreeList/${p.parentId}`, p)
// 添加无限群活码分组
export const addGroupQrcodeClass = p => post(`/service-cop/b/groupQrcode/v1/qrcodeClassAdd`, p)
// 修改无限群活码分组
export const modifyGroupQrcodeClass = p => post(`/service-cop/b/groupQrcode/v1/qrcodeClassModify`, p)
// 查询无限群活码分组详情
export const viewGroupQrcodeClass = p => post(`/service-cop/b/groupQrcode/v1/qrcodeClassView/${p.id}`, p, 'get')
// 删除无限群活码分组
export const delGroupQrcodeClass = p => post(`/service-cop/b/groupQrcode/v1/qrcodeClassDel/${p.id}`, p, 'get')

// 无限群活码
// 查询无限群活码分页列表
export const getGroupQrcodePageList = p => post(`/service-cop/b/groupQrcode/v1/qrcodePageList`, p)
// 查询无限群活码列表
export const getGroupQrcodeList = p => post(`/service-cop/b/groupQrcode/v1/qrcodeList`, p)
// 添加无限群活码
export const addGroupQrcode = p => post(`/service-cop/b/groupQrcode/v1/qrcodeAdd`, p)
// 修改无限群活码
export const modifyGroupQrcode = p => post(`/service-cop/b/groupQrcode/v1/qrcodeModify`, p)
// 查询无限群活码详情
export const viewGroupQrcode = p => post(`/service-cop/b/groupQrcode/v1/qrcodeView/${p.id}`, p, 'get')
// 删除无限群活码
export const delGroupQrcode = p => post(`/service-cop/b/groupQrcode/v1/qrcodeDel/${p.id}`, p, 'get')
